gdkglcontext: Only emit opengl debug calls if GDK_DEBUG=gl-debug
authorAlexander Larsson <alexl@redhat.com>
Wed, 24 Apr 2019 13:23:32 +0000 (15:23 +0200)
committerAlexander Larsson <alexl@redhat.com>
Thu, 25 Apr 2019 09:36:23 +0000 (11:36 +0200)
commit249f6a85b3d349194e856f87e43ae5b7a399fd57
tree1f9d90cbad2c72fb333dea38282088d78e717216
parent32edf29c0a7557bc9d48758ca09b023a511aa2ec
gdkglcontext: Only emit opengl debug calls if GDK_DEBUG=gl-debug

This avoids a potential performance cost in the non-debug case.
gdk/gdk.c
gdk/gdkglcontext.c
gdk/gdkinternals.h